<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>LEAD :: A Member of VIC</title>
  <%= stylesheet_link_tag 'lead' %>
  <%= javascript_include_tag 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js'  %>
  <%= javascript_include_tag 'rails'  %>
  <%= javascript_include_tag 'lead'  %>
</head>
<body>

  <%= render :partial => "layouts/header" %>

  <%= render :partial => "layouts/infobar" %>

  <div id="content">
    <p style="color: green"><%= notice %></p>

    <div style="float: right; display: none">
      <%= link_to "Home", session[:username] ? dashboard_url : root_url %> |
      <% if session[:username] %>
        <%= session[:username] %> [<%= link_to "Logout", logout_url  %>]
      <% else %>
        [<%= link_to "Login", login_url  %>]
      <% end %>

      <ul>
        <% all_controllers.each { |controller| %>
          <li><%= link_to controller.singularize.humanize, {:controller => controller} %></li>
        <% } %>
      </ul>
    </div>
    
    <%= yield %>
  </div>

  <%= render :partial => "layouts/footer" %>

</body>
</html>
